//
//  Constants.h
//  MeshStremingiOSClient
//
//  Created by Xu Haiyang on 11/27/12.
//  Copyright (c) 2012 Xu Haiyang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Constants : NSObject

FOUNDATION_EXPORT NSString *const DEFAULT_HOST;
FOUNDATION_EXPORT NSString *const DEFAULT_PORT;
FOUNDATION_EXPORT NSString *const SERVER_STATE_NOT_CONNECTED;
FOUNDATION_EXPORT NSString *const SERVER_STATE_CONNECTED;
FOUNDATION_EXPORT NSString *const BUTTON_TEXT_CONNECT;
FOUNDATION_EXPORT NSString *const BUTTON_TEXT_DISCONNECT;

enum SOCKET_STATE {SOCKET_CONNECTED_IDLE, SOCKET_NOT_CONNECTED_IDLE, SOCKET_WAIT_FOR_MODEL_LIST_SIZE , SOCKET_WAIT_FOR_MODEL_LIST, SOCKET_WAIT_FOR_HELLO, SOCKET_WAIT_SERVER_LOAD_MODEL, SOCKET_WAIT_FOR_SPM_BASE_INFO_DATA_SIZE, SOCKET_WAIT_FOR_SPM_BASE_INFO_DATA, SOCKET_WAIT_FOR_SPM_VSPLIT_DATA_SIZE, SOCKET_WAIT_FOR_SPM_VSPLIT_DATA, SOCKET_WAIT_FOR_SPM_DETAILS_DATA, SOCKET_WAIT_FOR_SPM_VSPLIT_DATA_IDX_NUM, SOCKET_WAIT_UPDATE_REFINE, SOCKET_WAIT_CLIENT_ABORT_ACK,
    SOCKET_WAIT_FOR_SERVER_RENDERING_ACK, SOCKET_WAIT_FOR_CLIENT_RENDERING_ACK,
    SOCKET_WAIT_FOR_SERVER_RENDERING_IMG_SIZE, SOCKET_WAIT_FOR_SERVER_RENDERING_IMG};

enum SOCKEt_TAG {GET_VDPM_DETAILS = 7};

enum PM_VIEW_STATUS
{
    PM_VIEW_STATUS_NONE                     = 1,
    PM_VIEW_STATUS_SPM_RENDER_BASE_MESH     = 2
};

enum DRAW_MODE {CLIENT_RENDERING, SERVER_RENDERING, HYBRID_RENDERING};

FOUNDATION_EXPORT NSString *const COMMAND_REQUEST_MODEL_LIST_XML;
FOUNDATION_EXPORT NSString *const COMMAND_REQUEST_MODEL_LIST_XML_SIZE;
FOUNDATION_EXPORT NSString *const COMMAND_REQUEST_LOAD_MODEL;
FOUNDATION_EXPORT NSString *const COMMAND_REQUEST_SPM_BASE_INFO_DATA_SIZE;
FOUNDATION_EXPORT NSString *const COMMAND_REQUEST_SPM_BASE_INFO_DATA;
FOUNDATION_EXPORT NSString *const COMMAND_SYNC_SPM_VIEWING_PARAMS;
FOUNDATION_EXPORT NSString *const COMMAND_RETIEVE_SPM_VSPLIT_DATA;
FOUNDATION_EXPORT NSString *const COMMAND_RETIEVE_SPM_VSPLIT_DATA_IDX_NUM;
FOUNDATION_EXPORT NSString *const COMMAND_RETIEVE_SPM_DETAILS;
FOUNDATION_EXPORT NSString *const COMMAND_CLIENT_ABORT_DURING_UPDATE;
FOUNDATION_EXPORT NSString *const COMMAND_CLIENT_UPDATE_SERVER_RENDERING;
FOUNDATION_EXPORT NSString *const COMMAND_CLIENT_UPDATE_CLIENT_RENDERING;
FOUNDATION_EXPORT NSString *const COMMAND_CLIENT_RETRIEVE_SERVER_RENDERING_IMG;





FOUNDATION_EXPORT NSString *const HELLO_FROM_SERVER;

@end
